package com.test.model;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "student")
public class Student {
	
	@Indexed
	@Field("user_id")
	int studenID;
	
	@Field("username")
	String name;
	
	@Field("age")
	int age;

	public int getStudenID() {
		return studenID;
	}

	public void setStudenID(int studenID) {
		this.studenID = studenID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Student(int studenID, String name, int age) {
		super();
		this.studenID = studenID;
		this.name = name;
		this.age = age;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

}
